﻿using Acb.Core.Domain.Entities;
using Acb.Core.Serialize;
using System;

namespace OAuth.Server.Domain.Entities
{
    /// <summary> 第三方帐号 </summary>
    [Naming("t_account_platform")]
    public class TAccountPlatform : BaseEntity<Guid>
    {
        public Guid AccountId { get; set; }
        public byte Type { get; set; }
        public byte State { get; set; }
        public string OpenId { get; set; }
        public string UnionId { get; set; }
        public string Nick { get; set; }
        public string Avatar { get; set; }
        public string AccessToken { get; set; }
        public string RefreshToken { get; set; }
        public DateTime? LoginTime { get; set; }
        public DateTime CreateTime { get; set; }
        public DateTime? ExpiredTime { get; set; }
    }
}
